package com.college.authority.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.college.common.pojo.ao.UmsRole;
import com.college.common.pojo.vo.umsRole.GetUmsRoleByUmsAdminIdsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 Mapper 接口
 * </p>
 *
 * @author 小C工作室
 * @since 2020-08-21
 */
@Repository
public interface UmsRoleMapper extends BaseMapper<UmsRole> {

	/**
	 * 获取用户所有角色
	 *
	 * @param adminId
	 * @return
	 */
	List<UmsRole> getRoleList(@Param("adminId") Long adminId);

	List<GetUmsRoleByUmsAdminIdsVO> getUmsRoleByUmsAdminIds(List<Long> umsAdminIds);
}
